<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>添加陪护师信息</title>
</head>

<body>
<button id="addCaregiverBtn">查看全部陪护师信息</button>
<script>
  document.getElementById('addCaregiverBtn').addEventListener('click', async () => {


    try {
      fetch(`http://localhost:8000/getAllCaregivers`)
              .then(response => response.json())
              .catch(error => console.error('请求出错:', error));
    } catch (error) {
      console.error('请求出错:', error);
    }
  });
</script>
</body>

</html>